package com.yiyue.graduate.pojo;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yiyuexiaofusheng
 * @date 2021/5/9
 */
public class Discuss implements Serializable {

    private Long id;

    private String topic;

    private Date createTime;

    @TableField("user_id")
    private User user;

    @Override
    public String toString() {
        return "Discuss{" +
                "id=" + id +
                ", topic='" + topic + '\'' +
                ", createTime=" + createTime +
                ", user=" + user +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Discuss(Long id, String topic, Date createTime) {
        this.id = id;
        this.topic = topic;
        this.createTime = createTime;
    }

    public Discuss(Long id, String topic, Date createTime, User user) {
        this.id = id;
        this.topic = topic;
        this.createTime = createTime;
        this.user = user;
    }

    public Discuss() {
    }
}
